package com.asyf.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//https://www.cnblogs.com/DanielL916/p/15588416.html
@Data
@AllArgsConstructor //全参构造函数
@NoArgsConstructor  //无参构造函数
@TableName("user_test")
public class User {
    @TableId(type = IdType.AUTO) //自增主键注解
    private Long id;
    private String name;
    private Integer age;
    private String email;
}

